package com.zhuangjie.shop.controller;

import com.zhaungjie.base.conduit.R;
import com.zhuangjie.shop.service.ShopActivityService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zhuangjie
 * @since 2024-03-12
 */
@RestController
@RequestMapping("/shop-activity")
public class ShopActivityController {
    @Autowired
    private ShopActivityService shopActivityService;
    @GetMapping("/list-activity")
    @ApiOperation("查询所有‘店铺活动’")
    public R listShopActivity() {
        return R.require(List.class,shopActivityService.list());
    }





}
